package com.youbug.mall.pms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.youbug.common.config.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableId;
import com.youbug.common.config.valid.AddGroup;
import com.youbug.common.config.valid.UpdateGroup;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.apache.ibatis.annotations.Update;

import javax.validation.constraints.NotBlank;

/**
 * <p>
 * 品牌
 * </p>
 *
 * @author youbug
 * @since 2023-07-04
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ApiModel(value="PmsBrand对象", description="品牌")
public class PmsBrand extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "品牌id")
    @TableId(value = "brand_id", type = IdType.AUTO)
    private Long brandId;

    @ApiModelProperty(value = "品牌名")
    @NotBlank(message = "品牌名不能为空",  groups = {AddGroup.class, UpdateGroup.class})
    private String name;

    @ApiModelProperty(value = "品牌logo地址")
    private String logo;

    @ApiModelProperty(value = "介绍")
    private String descript;

    @ApiModelProperty(value = "显示状态[0-不显示；1-显示]")
    private Integer showStatus;

    @ApiModelProperty(value = "检索首字母")
    private String firstLetter;

    @ApiModelProperty(value = "排序")
    private Integer sort;


}
